package com.example.testplayer.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import com.example.myplayerlib.view.MyPlayerView;
import com.example.testplayer.R;

public class MainActivity extends AppCompatActivity {
    private MyPlayerView myPlayerView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViews();
    }

    private void findViews() {
        myPlayerView = (MyPlayerView) findViewById(R.id.myPlayerView);
    }

    private void initView() {
        myPlayerView.setVideoPath("/sdcard/input.mp4");
    }

    @Override
    protected void onResume() {
        super.onResume();
        initView();

    }
}
